import { createRouter, createWebHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';
import ProcessDesignerView from '../views/ProcessDesignerView.vue';
import TaskListView from '../views/TaskListView.vue';
import FormDesignerView from '../views/FormDesignerView.vue';
import TestFormEditor from '../components/TestFormEditor.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/process-designer',
      name: 'process-designer',
      component: ProcessDesignerView
    },
    {
      path: '/task-list',
      name: 'task-list',
      component: TaskListView
    },
    {
      path: '/form-designer',
      name: 'form-designer',
      component: FormDesignerView
    },
    {
      path: '/test-form-editor',
      name: 'test-form-editor',
      component: TestFormEditor
    }
  ]
});

export default router;